package com.ruoyi.system.domain.vo;

/**
 * @ClassName UserAgentInterceptor * @Description TODO
 * @Author ZQB
 * @Date 18:57 2024/1/13
 * @Version 1.0
 **/
public class UserAgentInterceptor {

        private static ThreadLocal<String> userAgentHolder = new ThreadLocal<>();

        public static void setUserAgent(String userAgent) {
            userAgentHolder.set(userAgent);
        }

    public static String getUser(){
        return userAgentHolder.get();
    }

    public static void removeUser(){
        userAgentHolder.remove();
    }

}
